home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2006 May / PCWMAY06.iso / Software / Freeware / First Page 2006 3.00 / fp2006-final-3.00-setup.exe / {app} / Iscripts / DHTML - Other / flashing-table-border.izs < prev    next >
Text File  |  2005-09-02  |  2KB  |  82 lines

  1. <!NOWIZARD>
  2.  
  3. <!TITLE>Flashing Table Border Script
  4. <!/TITLE>
  5.  
  6. <!BROWSER>FF1+ IE5+ Opr7+<!/BROWSER>
  7.  
  8. <!DESCRIPTION>Make a particular table's border flash with this visual script! Alternate between two colors, configurable speed.
  9. <!/DESCRIPTION> 
  10.  
  11. <!CATEGORY>other<!/CATEGORY>
  12.  
  13. <!SCRIPT>
  14. <!-- START OF SCRIPT -->
  15. <table border="0" width="280" id="myexample" style="border:5px solid green">
  16. <tr>
  17. <td>Insert anything you want into this table.<br>Insert anything you want into this table.<br>Insert anything you want into this table.<br></td>
  18. </tr>
  19. </table>
  20. <script language="JavaScript1.2">
  21. <!--
  22.  
  23. /*
  24. Flashing Table Border Script- ⌐ Dynamic Drive (www.dynamicdrive.com)
  25. Visit http://www.dynamicdrive.com for this script
  26. Credit must stay intact for use
  27. */
  28.  
  29. //configure interval btw flash (1000=1 second)
  30. var speed=500
  31.  
  32. function flashit(){
  33. var crosstable=document.getElementById? document.getElementById("myexample") : document.all? document.all.myexample : ""
  34. if (crosstable){
  35. if (crosstable.style.borderColor.indexOf("green")!=-1)
  36. crosstable.style.borderColor="red"
  37. else
  38. crosstable.style.borderColor="green"
  39. }
  40. }
  41. setInterval("flashit()", speed)
  42. //-->
  43. </script>
  44. <!-- END OF SCRIPT -->
  45. <!/SCRIPT>
  46.  
  47. <!PREVIEW>
  48. <!-- START OF SCRIPT -->
  49.  
  50. <table border="0" width="280" id="myexample" style="border:5px solid green">
  51. <tr>
  52. <td>Insert anything you want into this table.<br>Insert anything you want into this table.<br>Insert anything you want into this table.<br></td>
  53. </tr>
  54. </table>
  55. <script language="JavaScript1.2">
  56. <!--
  57.  
  58. /*
  59. Flashing Table Border Script- ⌐ Dynamic Drive (www.dynamicdrive.com)
  60. Visit http://www.dynamicdrive.com for this script
  61. Credit must stay intact for use
  62. */
  63.  
  64. //configure interval btw flash (1000=1 second)
  65. var speed=500
  66.  
  67. function flashit(){
  68. var crosstable=document.getElementById? document.getElementById("myexample") : document.all? document.all.myexample : ""
  69. if (crosstable){
  70. if (crosstable.style.borderColor.indexOf("green")!=-1)
  71. crosstable.style.borderColor="red"
  72. else
  73. crosstable.style.borderColor="green"
  74. }
  75. }
  76. setInterval("flashit()", speed)
  77. //-->
  78. </script>
  79. <!-- END OF SCRIPT -->
  80. <!/PREVIEW>
  81.  
  82. <!RELATED>NONE<!/RELATED>